import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {NzTableModule} from 'ng-zorro-antd/table';
import {NzDividerModule} from 'ng-zorro-antd/divider';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {NzFormModule} from 'ng-zorro-antd/form';
import {NzButtonModule} from 'ng-zorro-antd/button';
import {NzModalModule, NzModalService} from 'ng-zorro-antd/modal';
import {NzMessageModule} from 'ng-zorro-antd/message';
import {NzCheckboxModule} from 'ng-zorro-antd/checkbox';
import {BaseService} from './service/base.service';
import {LayerService} from './service/layer.service';
import {NzNotificationService} from 'ng-zorro-antd/notification';
import {NzInputModule} from 'ng-zorro-antd/input';
import {NzIconModule} from 'ng-zorro-antd/icon';
import {NzRadioModule} from 'ng-zorro-antd/radio';
import {NzBadgeModule} from 'ng-zorro-antd/badge';
import {NzAvatarModule} from 'ng-zorro-antd/avatar';
import {NzSwitchModule} from 'ng-zorro-antd/switch';
import {NzTagModule} from 'ng-zorro-antd/tag';
import {NzSelectModule} from 'ng-zorro-antd/select';
import {NzDatePickerModule} from 'ng-zorro-antd/date-picker';
import {ToolbarComponent} from '../components/toolbar/toolbar.component';
import { MyDatePickerComponent } from '../components/my-date-picker/my-date-picker.component';
import {NzToolTipModule} from 'ng-zorro-antd/tooltip';
import {ZorroService} from './service/zorro.service';
import {EmptyCheckPipe} from './pipe/empty-check.pipe';
import { NzImageModule } from 'ng-zorro-antd/image';


@NgModule({
  declarations: [
    EmptyCheckPipe,
    ToolbarComponent,
    MyDatePickerComponent
  ],
  imports: [
    CommonModule,
    NzTableModule,
    NzDividerModule,
    NzFormModule,
    FormsModule,
    ReactiveFormsModule,
    NzButtonModule,
    NzMessageModule,
    NzModalModule,
    NzCheckboxModule,
    NzInputModule,
    NzIconModule,
    NzRadioModule,
    NzBadgeModule,
    NzAvatarModule,
    NzSwitchModule,
    NzTagModule,
    NzSelectModule,
    NzDatePickerModule,
    NzToolTipModule,
    NzImageModule
  ],
  exports: [
    EmptyCheckPipe,
    CommonModule,
    NzTableModule,
    NzDividerModule,
    NzFormModule,
    FormsModule,
    ReactiveFormsModule,
    NzButtonModule,
    NzMessageModule,
    NzModalModule,
    NzCheckboxModule,
    NzInputModule,
    NzIconModule,
    NzRadioModule,
    NzBadgeModule,
    NzAvatarModule,
    NzSwitchModule,
    NzTagModule,
    NzSelectModule,
    NzDatePickerModule,
    ToolbarComponent,
    NzToolTipModule,
    NzImageModule,
    MyDatePickerComponent
  ],
  providers: [
    NzModalService,
    BaseService,
    LayerService,
    ZorroService,
    NzNotificationService
  ]
})
export class SharedModule {
}
